package com.iotek.ssm.service.impl;

import com.iotek.ssm.mapper.SalaryDissentMapper;
import com.iotek.ssm.mapper.SalarySheetMapper;
import com.iotek.ssm.pojo.CustomQueryVo;
import com.iotek.ssm.pojo.SalarySheet;
import com.iotek.ssm.service.SalarySheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("/salarySheetService")
public class SalarySheetServiceImpl implements SalarySheetService {

    @Autowired
    private SalarySheetMapper salarySheetMapper;

    public void addSalarySheet(SalarySheet salarySheet) throws Exception {
    salarySheetMapper.addSalarySheet(salarySheet);
    }

    public List<SalarySheet> findSalarySheet(CustomQueryVo customQueryVo) throws Exception {
        return salarySheetMapper.findSalarySheet(customQueryVo);
    }

    public void addSalaryList(List<SalarySheet> salarySheets) throws Exception {
        salarySheetMapper.addSalaryList(salarySheets);
    }
}
